package com.huabo.system.oracle.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import javax.persistence.Table;
import javax.persistence.Transient;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

/**
 * 合同类型维护表。
 *
 */

@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("TBL_CONTRACT_TYPEOF")
@ApiModel(value="TblContractTypeof")
public class TblContractTypeof implements Serializable{
	private static final long serialVersionUID = 6312252984564842416L;
	@TableId("TYPEID")
	private Integer typeId;
	@TableField("TYPENAME")
	private String typeName;
	@TableField("CREATESTAFF")
	private Integer createStaff;
	@TableField("CREATETIME")
	private Date createTime;
	@TableField("ORGID")
	private Integer orgId;
	@TableField("UPDATESTAFF")
	private Integer updateStaff;
	@TableField("UPDATETIME")
	private Date updateTime;
	@TableField("PAGEURL")
	private String pageUrl;
	@Transient
	private TblContractTypeof fatherType;
	@Transient
	private List<TblContractTypeof> childrenList = new ArrayList<TblContractTypeof>(0);
	@TableField("SETTINGID")
	private String settingid;//流程id
	
	public TblContractTypeof() {
		
	}
	
	public TblContractTypeof(Integer typeId) {
		this.typeId = typeId;
	}


}
